package factory.components;

import core.Component;
import core.Coordinate;
import factory.ComponentInterface;

public class Vessel implements ComponentInterface {
	private Coordinate capacity;
	private Component component;

	public Vessel() {
		component = new Component(new Coordinate(0, 0), new Coordinate(0, 0));
		this.capacity = new Coordinate(0, 0);
	}

	public Vessel(Coordinate position, Coordinate size, Coordinate capacity) {
		component = new Component(position, size);
		this.capacity = capacity;
	}

	public Coordinate getCapacity() {
		return capacity;
	}

	public void setCapacity(Coordinate capacity) {
		this.capacity = capacity;
	}

	public Coordinate getSize() {
		return component.getSize();
	}

	public void setSize(Coordinate size) {
		component.setSize(size);
	}

	public Coordinate getPosition() {
		return component.getPosition();
	}

	public void setPosition(Coordinate position) {
		component.setPosition(position);
	}

}